#define _CRT_SECURE_NO_WARNINGS 1
class Solution {
public:
    bool threeConsecutiveOdds(vector<int>& arr) {
        int n = arr.size();
        int ret = 0;
        for (int i = 0; i < n; i++)
        {
            if (arr[i] % 2 == 0) ret = 0;
            else ret++;
            if (ret == 3) return true;
        }
        return false;
    }
};